﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SCS.Core.Models.Collection
{
    public class StockCollection
    {
        [Required(ErrorMessage = "Please enter Quantity.")]
        [DisplayName("PriceValue")]
        [RegularExpression(@"^([0-9]*|\d*\.\d{1}?\d*)$", ErrorMessage = "Quantity must be a Number.")]
        public long? Quantity { get; set; }

        [Required(ErrorMessage = "Please choice Date for StockIn of product.")]
        [DisplayName("StartDate")]
        [RegularExpression(@"^\d{2}\/\d{2}\/\d{4}$", ErrorMessage = "StockIn is not in the correct format.")]
        public DateTime? StockIn { get; set; }

        [DisplayName("ModifyDate")]
        public DateTime? ModifyDate { get; set; }

        [DisplayName("Status")]
        public bool? Status { get; set; }

        [DisplayName("StockCode")]
        [StringLength(50)]
        public string StockCode { get; set; }

        [DisplayName("ProductID")]
        public int? ProductID { get; set; }

        [DisplayName("NotesStock")]
        [StringLength(250)]
        public string NotesStock { get; set; }

        

        [DisplayName("StockID")]
        public int? StockID { get; set; }
    }
}
